<meta meta="佣金配置" args="data"/>
<style>

</style>
<form class="form-horizontal" id="form" s="form,datac,nda,valid" s-data="data" style="width: 600px;">
    <div class="form-group">
        <label class="col-sm-3 control-label">预留佣金比例</label>
        <div class="col-sm-9">
            <input autocomplete="off" type="number" min="1" class="form-control" name="retainCommissionRate" placeholder="预留佣金比例，剩余的部分进行分享分成"
                   s-valid-error="require(),min(1)"/>
        </div>
    </div>
    <div class="form-group">
        <label class="col-sm-3 control-label">代理商获得的佣金比例</label>
        <div class="col-sm-9">
            <input autocomplete="off" type="number" min="1" class="form-control" name="agentRetainCommissionRate" placeholder="代理商获得的佣金比例，该部分从预留佣金比例里获得"
                   s-valid-error="require(),min(1)"/>
        </div>
    </div>
</form>
<script type="text/javascript">
    S.getContent = function () {
        var deferred = $.Deferred();
        $form.validate().done(function() {
            deferred.resolve(Smart.serializeToObject($form.node))
        })
        return deferred;
    }
</script>